package com.example.demo.study.exception;

public class Person2TEST {
    public static void main(String[] args) {
        Person2 person2 = new Person2();
        try{
//            person2.setSex("nn");
            person2.setAge(150);
            System.out.println(person2.getAge());
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally {
//            System.out.println(person2.getSex());
        }

    }
}
